package cn.lbd.api.designMode.factory.simple;

public class CarFactory {
    public static Car getCar(String carName){
        if ("东风日产".equals(carName)){
            return new Dongfeng();
        }else if ("丰田".equals(carName)){
            return new Fengtian();
        }else {
            return null;
        }
    }
}
